package com.example.hackerweb.controller;

import com.example.hackerdao.dao.Project;
import com.example.harkerservice.service.ProjectService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Description：
 *
 * @Author: cw
 * CreateTime：2023-03-29
 */
@RestController
@RequestMapping("project")
public class ProjectController {

    @Resource
    ProjectService projectService;


    @PostMapping("all")
    public List<Project> selectAll(){
        return projectService.selectAll();
    }

}
